package com.me.waterphase.listener.contact;

import com.badlogic.gdx.math.Vector2;
import com.me.waterphase.utils.PhysicManager;

public class FootContact implements ICustomContact {

	private int numberContact;
	private Vector2 direction;
	
	public FootContact(){
		numberContact = 0;
		direction= new Vector2 (1,0);
	}
	
	public FootContact(int _number, Vector2 _v)
	{
		numberContact = _number;
		direction=_v;
	}
	
	@Override
	public PhysicManager.CONTACT_TYPE getContactType() {
		return PhysicManager.CONTACT_TYPE.USERDATA_GROUND_SENSOR;
	}

	public int getNumberContact()
	{
		return numberContact;
	}
	
	public void setNumberFootContact(int _number)
	{
		numberContact = _number;
	}
	
	public void increment()
	{
		numberContact++;
	}
	
	public void decrement()
	{
		numberContact--;
	}
	
	public Vector2 getDirection()
	{
		return direction;
	}
	public void setDirection(Vector2 _v)
	{
		direction =_v;
	}
}
